<!DOCTYPE html>
<!-- saved from url=(0052)http://getbootstrap.com/docs/4.0/examples/dashboard/ -->
<html lang="en" xmlns:th="http://www.thymeleaf.org" xmlns="http://www.w3.org/1999/html">

<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
    <meta name="description" content="">
    <meta name="author" content="">

    <title>Dashboard Template for Bootstrap</title>
    <!-- Bootstrap core CSS -->
    <link href="asserts/css/bootstrap.min.css" th:href="@{/webjars/bootstrap/4.0.0/css/bootstrap.css}" rel="stylesheet">

    <!-- Custom styles for this template -->
    <link href="asserts/css/dashboard.css" th:href="@{/asserts/css/dashboard.css}" rel="stylesheet">
    <style type="text/css">
        /* Chart.js */

        @-webkit-keyframes chartjs-render-animation {
            from {
                opacity: 0.99
            }
            to {
                opacity: 1
            }
        }

        @keyframes chartjs-render-animation {
            from {
                opacity: 0.99
            }
            to {
                opacity: 1
            }
        }

        .chartjs-render-monitor {
            -webkit-animation: chartjs-render-animation 0.001s;
            animation: chartjs-render-animation 0.001s;
        }
    </style>
</head>

<body>
<!--引入抽取的topbar-->
<!--模板名：会使用thymeleaf的前后缀配置规则进行解析-->
<div th:replace="commons/bar::topbar"></div>

<div class="container-fluid">
    <div class="row">
        <!--引入侧边栏-->
        <div th:replace="commons/bar::#sidebar(activeUri='person')"></div>

        <main role="main" class="col-md-9 ml-sm-auto col-lg-10 pt-3 px-4">

            <h3>个人中心：</h3></br>

            <a >个人资料</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
            <a href="repassword" th:href="@{/person/repassword/}+${user.id}">修改密码</a>
            <br>
            <form th:action="@{/person/updateperson}" method="post">
                <input type="hidden" name="_method" value="put" th:if="${user!=null}"/>
                <input type="hidden" name="id" th:if="${user!=null}" th:value="${user.id}">
                <table class="table table-striped table-sm">
                    <thead>
                    <tr>
                        <th>姓名：[[${user.name}]]</th>
                    </tr>
                    <tr>
                        <th >个人账号：[[${user.userName}]]</th>
                        <th >手机账号：<input type="text"  name="mobile" th:value="${user.mobile}"></th>
                    </tr>
                    <tr>
                        <th >所属角色：[[${user.isSuper}]]</th>
                        <th >邮箱：<input  name="email" type="text" th:value="${user.email}"></th>
                    </tr>
                    <tr>
                        <th>所属部门：[[${user.dept}]]</th>
                    </tr>
                </table>
                <button type="submit" class="btn btn-primary">保存</button>
            </form>
        </main>
    </div>
</div>

</body>

</html>